package com.cochain.ftp;

import org.apache.commons.net.ftp.FTPClient;

/**
 * 获取 ftp 客户端对象的接口
 */
public interface FtpPoolService {
    /**
     * 获取ftpClient
     * @return
     */
    FTPClient borrowObject(String flag);

    /**
     * 归还ftpClient
     * @param ftpClient
     * @return
     */
    void returnObject(FTPClient ftpClient,String flag);

}

